-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flow migrate state
command
#1426
Conversation
flow migrate state
command to migrate emulator state to Cadence 1.0
flow migrate state
command to migrate emulator state to Cadence 1.0flow migrate state
command
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
internal/migrate/state.go
Outdated
return nil, fmt.Errorf("failed to open database: %w", err) | ||
} | ||
|
||
rwf := &migration.NOOPReportWriterFactory{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll probably want some kind of writer here to provide feedback to the developer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, I'll see how I can surface it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a --save-report
flag - open to feedback here about naming/acceptable defaults. Assumed it's probably best not to pollute user's workspace if not manually specified (so default to NOOP) but can change if wanted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with a local build, looks good! 👌
Should be good to go once #1450 is in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Think that should be OK. We can have the same params as in https://github.com/onflow/flow-emulator/pull/608/files#diff-717939af182d8688c65dd7e4a5b5471360a4e3719f2dba0b34629167f3ce70afR97-R104. |
Closes #1433
Description
For contributor use:
master
branchFiles changed
in the Github PR explorer